<?php



//checklogin();


global $_W,$_GPC;

$_W['page']['title'] = '客服管理';
$_W['modulename'] = $this->modulename;
$et = $_GPC['et'];
var_dump($et);  

//判断参数et=2 执行新增方法
if($et == 2) {
    if(!empty($_GPC['pid']) ) {}
    include $this->template('service_user_updata');
    return;
}


//查询&获取客服数据

$dataList = model('ServiceUser')->getList($_GPC['page']);
if(empty($dataList)) {
    $dataList = [];
}

// 数据分页
$page = model('ServiceUser')->lastPageHtml();

include $this->template('service_user_list');
return;